import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({

  plugins: [react()],
  server:{
    host:'0.0.0.0',
    hmr:true

  },
  proxy: {
    '/api': {
      target: "http://172.16.110.150:3000",
      changeOrigin: true,
      pathRewrite: {
        '^/api': ''
      }
    }
  }
})
